# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.


import  numpy as np
import matplotlib as plt
import pandas as pd

Gold = pd.read_csv("LBMA-GOLD.csv")
Gold_pri = Gold['USD (PM)']
Gold_pri.dropna()

Gold_pri.plot()
Gold_pri_data = np.array(Gold_pri)
Gold_pri_data = Gold_pri_data.T

Gold_len = len(Gold_pri)
#%%
Gold_pri_data_temp = np.zeros(Gold_len+1)
Gold_pri_data_temp[0] = Gold_pri_data[0]
print(len(Gold_pri_data_temp))
Gold_pri_data_temp[1:Gold_len] = Gold_pri_data[0:]
#%%
Gold_pri_data = Gold_pri_data - Gold_pri_data_temp[0:Gold_len]
Gold_pic = pd.DataFrame(Gold_pri_data )
#%%
Gold_pic.plot()
plt.rcParams['figure.figsize'] = (24.0, 8.0)
plt.plot(Gold_pri_data,)